package com.pig4cloud.pigx.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 记录当前区块
 *
 */
@Data
@TableName("current_block")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "记录当前区块")
public class CurrentBlock extends Model<CurrentBlock> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键ID
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@ApiModelProperty(value="主键ID")
	private Long id;

	/**
	 * 创建人
	 */
	@ApiModelProperty(value="创建人")
	private String createBy;

	/**
	 * 修改人
	 */
	@ApiModelProperty(value="修改人")
	private String updateBy;

	/**
	 * 创建时间
	 */
	@ApiModelProperty(value="创建时间")
	private LocalDateTime createTime;

	/**
	 * 修改时间
	 */
	@ApiModelProperty(value="修改时间")
	private LocalDateTime updateTime;

	/**
	 * 逻辑删除
	 */
	@ApiModelProperty(value="逻辑删除")
	@TableLogic
	private String delFlag;

	/**
	 * 当前区块
	 */
	@ApiModelProperty(value="当前区块")
	private String blockNumber;

	/**
	 * 公链
	 */
	@ApiModelProperty(value="公链")
	private String publicChain;
}

